package com.jrx.anytxn.reporting.job.xib.step;

import com.jrx.anytxn.reporting.entity.AmlIATrading;
import com.jrx.anytxn.reporting.service.IXibService;
import com.jrx.anytxn.transaction.entity.TlInterestAccrualLog;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccruedSerialProcessor implements ItemProcessor<TlInterestAccrualLog, AmlIATrading> {

    @Autowired
    private IXibService xibService;

    @Override
    public AmlIATrading process(TlInterestAccrualLog item) throws Exception {
        return xibService.assemAccrued(item);
    }
}
